using System;
namespace Golem.SearchDatabase.Models
{
    public partial class MSSQLDataContext
    {
        public void ExecuteScript(String script)
        {
            var commands = script.Split(new string[] { "GO\r" }, System.StringSplitOptions.RemoveEmptyEntries);
            foreach (var cmd in commands)
            {
                this.ExecuteCommand(cmd);
            }
        }
    }
}